<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.rendition.search.layouts.contrib.override">

  <require>org.nuxeo.ecm.platform.rendition.search.layouts.contrib</require>

  <extension point="widgets" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <widget name="stored_rendition_search_title" type="text">
      <labels>
        <label mode="any">label.dublincore.title</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>stored_rend_srch:dc_title</field>
      </fields>
      <properties widgetMode="edit">
        <property name="styleClass">dataInputText</property>
      </properties>
    </widget>

    <widget name="stored_rendition_search_creation_min" type="datetime">
      <labels>
        <label mode="any">label.dublincore.creationDateBetween</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>stored_rend_srch:dc_created_min</field>
      </fields>
      <properties widgetMode="any">
        <property name="pattern">#{nxu:basicDateAndTimeFormatter()}</property>
      </properties>
      <properties widgetMode="edit">
        <property name="format">#{nxu:basicDateAndTimeFormatter()}</property>
        <property name="defaultTime">00:00</property>
      </properties>
    </widget>

    <widget name="stored_rendition_search_creation_max" type="datetime">
      <labels>
        <label mode="any">label.search.and</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>stored_rend_srch:dc_created_max</field>
      </fields>
      <properties widgetMode="any">
        <property name="pattern">#{nxu:basicDateAndTimeFormatter()}</property>
      </properties>
      <properties widgetMode="edit">
        <property name="format">#{nxu:basicDateAndTimeFormatter()}</property>
        <property name="defaultTime">23:59</property>
      </properties>
    </widget>

    <widget name="stored_rendition_search_source_modification_min" type="datetime">
      <labels>
        <label mode="any">label.rendition.search.sourceModificationDateBetween</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>stored_rend_srch:rend_sourceModificationDate_min</field>
      </fields>
      <properties widgetMode="any">
        <property name="pattern">#{nxu:basicDateAndTimeFormatter()}</property>
      </properties>
      <properties widgetMode="edit">
        <property name="format">#{nxu:basicDateAndTimeFormatter()}</property>
        <property name="defaultTime">00:00</property>
      </properties>
    </widget>

    <widget name="stored_rendition_search_source_modification_max" type="datetime">
      <labels>
        <label mode="any">label.search.and</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>stored_rend_srch:rend_sourceModificationDate_max</field>
      </fields>
      <properties widgetMode="any">
        <property name="pattern">#{nxu:basicDateAndTimeFormatter()}</property>
      </properties>
      <properties widgetMode="edit">
        <property name="format">#{nxu:basicDateAndTimeFormatter()}</property>
        <property name="defaultTime">23:59</property>
      </properties>
    </widget>

    <widget name="stored_rendition_search_rendition_name" type="select_renditionNames">
      <labels>
        <label mode="any">label.rendition.search.renditionName</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>stored_rend_srch:rend_renditionName</field>
      </fields>
      <properties widgetMode="edit">
        <property name="styleClass">dataInputText</property>
      </properties>
    </widget>

    <widget name="stored_rendition_search_rendition_variant" type="text">
      <labels>
        <label mode="any">label.rendition.search.renditionVariant</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>stored_rend_srch:rend_renditionVariant</field>
      </fields>
      <properties widgetMode="edit">
        <property name="styleClass">dataInputText</property>
      </properties>
    </widget>

    <widget name="listing_rendition_title_link" type="listing_rendition_title_link">
      <labels>
        <label mode="any">label.rendition.title_link</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>data</field>
        <field>data.ref</field>
        <field>data.dc.description</field>
        <field>data.file.content</field>
        <field>data.file.content.filename</field>
      </fields>
      <properties mode="any">
        <property name="file_property_name">file:content</property>
        <property name="file_schema">file</property>
      </properties>
    </widget>

    <widget name="listing_rendition_source_title_link" type="listing_rendition_source_title_link">
      <labels>
        <label mode="any">label.rendition.source_title_link</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>data</field>
        <field>data.ref</field>
        <field>data.dc.description</field>
        <field>data.file.content</field>
        <field>data.file.content.filename</field>
      </fields>
      <properties mode="any">
        <property name="file_property_name">file:content</property>
        <property name="file_schema">file</property>
      </properties>
    </widget>

    <widget name="listing_rendition_source_modification_date" type="datetime">
      <labels>
        <label mode="any">label.rendition.sourceModificationDate</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>data.rend.sourceModificationDate</field>
      </fields>
      <properties widgetMode="any">
        <property name="pattern">#{nxu:basicDateAndTimeFormatter()}</property>
      </properties>
    </widget>

    <widget name="listing_rendition_name" type="text">
      <labels>
        <label mode="any">label.rendition.renditionName</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>data.rend.renditionName</field>
      </fields>
    </widget>

    <widget name="listing_rendition_variant" type="text">
      <labels>
        <label mode="any">label.rendition.renditionVariant</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>data.rend.renditionVariant</field>
      </fields>
    </widget>

  </extension>

</component>
